Optimal. Leaf size=169 \[ -\frac {3 d^2 (c+d x)}{4 f^3 (a \tanh (e+f x)+a)}-\frac {3 d (c+d x)^2}{4 f^2 (a \tanh (e+f x)+a)}-\frac {(c+d x)^3}{2 f (a \tanh (e+f x)+a)}+\frac {3 d (c+d x)^2}{8 a f^2}+\frac {(c+d x)^3}{4 a f}+\frac {(c+d x)^4}{8 a d}-\frac {3 d^3}{8 f^4 (a \tanh (e+f x)+a)}+\frac {3 d^3 x}{8 a f^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.19, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {3723, 3479, 8} \[ -\frac {3 d^2 (c+d x)}{4 f^3 (a \tanh (e+f x)+a)}-\frac {3 d (c+d x)^2}{4 f^2 (a \tanh (e+f x)+a)}-\frac {(c+d x)^3}{2 f (a \tanh (e+f x)+a)}+\frac {3 d (c+d x)^2}{8 a f^2}+\frac {(c+d x)^3}{4 a f}+\frac {(c+d x)^4}{8 a d}-\frac {3 d^3}{8 f^4 (a \tanh (e+f x)+a)}+\frac {3 d^3 x}{8 a f^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3479
Rule 3723
Rubi steps
\begin {align*} \int \frac {(c+d x)^3}{a+a \tanh (e+f x)} \, dx &=\frac {(c+d x)^4}{8 a d}-\frac {(c+d x)^3}{2 f (a+a \tanh (e+f x))}+\frac {(3 d) \int \frac {(c+d x)^2}{a+a \tanh (e+f x)} \, dx}{2 f}\\ &=\frac {(c+d x)^3}{4 a f}+\frac {(c+d x)^4}{8 a d}-\frac {3 d (c+d x)^2}{4 f^2 (a+a \tanh (e+f x))}-\frac {(c+d x)^3}{2 f (a+a \tanh (e+f x))}+\frac {\left (3 d^2\right ) \int \frac {c+d x}{a+a \tanh (e+f x)} \, dx}{2 f^2}\\ &=\frac {3 d (c+d x)^2}{8 a f^2}+\frac {(c+d x)^3}{4 a f}+\frac {(c+d x)^4}{8 a d}-\frac {3 d^2 (c+d x)}{4 f^3 (a+a \tanh (e+f x))}-\frac {3 d (c+d x)^2}{4 f^2 (a+a \tanh (e+f x))}-\frac {(c+d x)^3}{2 f (a+a \tanh (e+f x))}+\frac {\left (3 d^3\right ) \int \frac {1}{a+a \tanh (e+f x)} \, dx}{4 f^3}\\ &=\frac {3 d (c+d x)^2}{8 a f^2}+\frac {(c+d x)^3}{4 a f}+\frac {(c+d x)^4}{8 a d}-\frac {3 d^3}{8 f^4 (a+a \tanh (e+f x))}-\frac {3 d^2 (c+d x)}{4 f^3 (a+a \tanh (e+f x))}-\frac {3 d (c+d x)^2}{4 f^2 (a+a \tanh (e+f x))}-\frac {(c+d x)^3}{2 f (a+a \tanh (e+f x))}+\frac {\left (3 d^3\right ) \int 1 \, dx}{8 a f^3}\\ &=\frac {3 d^3 x}{8 a f^3}+\frac {3 d (c+d x)^2}{8 a f^2}+\frac {(c+d x)^3}{4 a f}+\frac {(c+d x)^4}{8 a d}-\frac {3 d^3}{8 f^4 (a+a \tanh (e+f x))}-\frac {3 d^2 (c+d x)}{4 f^3 (a+a \tanh (e+f x))}-\frac {3 d (c+d x)^2}{4 f^2 (a+a \tanh (e+f x))}-\frac {(c+d x)^3}{2 f (a+a \tanh (e+f x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.44, size = 244, normalized size = 1.44 \[ \frac {\text {sech}(e+f x) (\sinh (f x)+\cosh (f x)) \left (2 f^4 x \left (4 c^3+6 c^2 d x+4 c d^2 x^2+d^3 x^3\right ) (\sinh (e)+\cosh (e))+(\sinh (e)-\cosh (e)) \cosh (2 f x) \left (4 c^3 f^3+6 c^2 d f^2 (2 f x+1)+6 c d^2 f \left (2 f^2 x^2+2 f x+1\right )+d^3 \left (4 f^3 x^3+6 f^2 x^2+6 f x+3\right )\right )+(\cosh (e)-\sinh (e)) \sinh (2 f x) \left (4 c^3 f^3+6 c^2 d f^2 (2 f x+1)+6 c d^2 f \left (2 f^2 x^2+2 f x+1\right )+d^3 \left (4 f^3 x^3+6 f^2 x^2+6 f x+3\right )\right )\right )}{16 a f^4 (\tanh (e+f x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.75, size = 304, normalized size = 1.80 \[ \frac {{\left (2 \, d^{3} f^{4} x^{4} - 4 \, c^{3} f^{3} - 6 \, c^{2} d f^{2} - 6 \, c d^{2} f + 4 \, {\left (2 \, c d^{2} f^{4} - d^{3} f^{3}\right )} x^{3} - 3 \, d^{3} + 6 \, {\left (2 \, c^{2} d f^{4} - 2 \, c d^{2} f^{3} - d^{3} f^{2}\right )} x^{2} + 2 \, {\left (4 \, c^{3} f^{4} - 6 \, c^{2} d f^{3} - 6 \, c d^{2} f^{2} - 3 \, d^{3} f\right )} x\right )} \cosh \left (f x + e\right ) + {\left (2 \, d^{3} f^{4} x^{4} + 4 \, c^{3} f^{3} + 6 \, c^{2} d f^{2} + 6 \, c d^{2} f + 4 \, {\left (2 \, c d^{2} f^{4} + d^{3} f^{3}\right )} x^{3} + 3 \, d^{3} + 6 \, {\left (2 \, c^{2} d f^{4} + 2 \, c d^{2} f^{3} + d^{3} f^{2}\right )} x^{2} + 2 \, {\left (4 \, c^{3} f^{4} + 6 \, c^{2} d f^{3} + 6 \, c d^{2} f^{2} + 3 \, d^{3} f\right )} x\right )} \sinh \left (f x + e\right )}{16 \, {\left (a f^{4} \cosh \left (f x + e\right ) + a f^{4} \sinh \left (f x + e\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.14, size = 193, normalized size = 1.14 \[ \frac {{\left (2 \, d^{3} f^{4} x^{4} e^{\left (2 \, f x + 2 \, e\right )} + 8 \, c d^{2} f^{4} x^{3} e^{\left (2 \, f x + 2 \, e\right )} + 12 \, c^{2} d f^{4} x^{2} e^{\left (2 \, f x + 2 \, e\right )} - 4 \, d^{3} f^{3} x^{3} + 8 \, c^{3} f^{4} x e^{\left (2 \, f x + 2 \, e\right )} - 12 \, c d^{2} f^{3} x^{2} - 12 \, c^{2} d f^{3} x - 6 \, d^{3} f^{2} x^{2} - 4 \, c^{3} f^{3} - 12 \, c d^{2} f^{2} x - 6 \, c^{2} d f^{2} - 6 \, d^{3} f x - 6 \, c d^{2} f - 3 \, d^{3}\right )} e^{\left (-2 \, f x - 2 \, e\right )}}{16 \, a f^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.20, size = 929, normalized size = 5.50 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 186, normalized size = 1.10 \[ \frac {1}{4} \, c^{3} {\left (\frac {2 \, {\left (f x + e\right )}}{a f} - \frac {e^{\left (-2 \, f x - 2 \, e\right )}}{a f}\right )} + \frac {3 \, {\left (2 \, f^{2} x^{2} e^{\left (2 \, e\right )} - {\left (2 \, f x + 1\right )} e^{\left (-2 \, f x\right )}\right )} c^{2} d e^{\left (-2 \, e\right )}}{8 \, a f^{2}} + \frac {{\left (4 \, f^{3} x^{3} e^{\left (2 \, e\right )} - 3 \, {\left (2 \, f^{2} x^{2} + 2 \, f x + 1\right )} e^{\left (-2 \, f x\right )}\right )} c d^{2} e^{\left (-2 \, e\right )}}{8 \, a f^{3}} + \frac {{\left (2 \, f^{4} x^{4} e^{\left (2 \, e\right )} - {\left (4 \, f^{3} x^{3} + 6 \, f^{2} x^{2} + 6 \, f x + 3\right )} e^{\left (-2 \, f x\right )}\right )} d^{3} e^{\left (-2 \, e\right )}}{16 \, a f^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.31, size = 273, normalized size = 1.62 \[ \frac {{\mathrm {e}}^{-2\,e-2\,f\,x}\,\left (8\,c^3\,x\,{\mathrm {e}}^{2\,e+2\,f\,x}+2\,d^3\,x^4\,{\mathrm {e}}^{2\,e+2\,f\,x}+12\,c^2\,d\,x^2\,{\mathrm {e}}^{2\,e+2\,f\,x}+8\,c\,d^2\,x^3\,{\mathrm {e}}^{2\,e+2\,f\,x}\right )}{16\,a}-\frac {\frac {{\mathrm {e}}^{-2\,e-2\,f\,x}\,\left (3\,d^3-3\,d^3\,{\mathrm {e}}^{2\,e+2\,f\,x}\right )}{16}+\frac {f^2\,{\mathrm {e}}^{-2\,e-2\,f\,x}\,\left (6\,c^2\,d+6\,d^3\,x^2-6\,c^2\,d\,{\mathrm {e}}^{2\,e+2\,f\,x}+12\,c\,d^2\,x\right )}{16}+\frac {f\,{\mathrm {e}}^{-2\,e-2\,f\,x}\,\left (6\,c\,d^2+6\,d^3\,x-6\,c\,d^2\,{\mathrm {e}}^{2\,e+2\,f\,x}\right )}{16}+\frac {f^3\,{\mathrm {e}}^{-2\,e-2\,f\,x}\,\left (4\,c^3-4\,c^3\,{\mathrm {e}}^{2\,e+2\,f\,x}+4\,d^3\,x^3+12\,c\,d^2\,x^2+12\,c^2\,d\,x\right )}{16}}{a\,f^4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {c^{3}}{\tanh {\left (e + f x \right )} + 1}\, dx + \int \frac {d^{3} x^{3}}{\tanh {\left (e + f x \right )} + 1}\, dx + \int \frac {3 c d^{2} x^{2}}{\tanh {\left (e + f x \right )} + 1}\, dx + \int \frac {3 c^{2} d x}{\tanh {\left (e + f x \right )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________